import matplotlib.pyplot as plt

x = ['origin', 'V1', 'V2', 'V3']
y1 = [9.24, 24.00, 10.21, 28.46]
y2=[7.37, 220.96, 9.12, 234.15 ]

plt.plot(x, y1, label='Small.conf', linestyle='-', color='green')
plt.plot(x, y2, label='Realworld.conf', linestyle='--', color='red')
plt.xlabel('version')
plt.ylabel('GFlops')
plt.legend(loc='best')
plt.savefig('PAC_result.png', dpi=500)
plt.show()